package com.itheima.Homework5;

public class Test02 {
    public static void main(String[] args) {
        int max = getMax(10, 20, 30);
        int max2 = getMax(13,15);
        System.out.println(max);
        System.out.println(max2);
    }

    public static int getMax(int a, int b, int c) {
        int temMax = a > b ? a : b;
        int max = temMax > c ? temMax : c;

        return max;
    }

    public static int getMax(int a, int b) {
        int max = a > b ? a : b;
        return max;
    }
}